package cn.byapps.hw.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "Teacher")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Teacher implements Serializable {

    @Id
    @Column(name = "id", length = 20)
    private String id;
    @Column(name = "name", length = 30)
    private String name;
    @Column(name = "password", length = 50)
    private String password;
    @Column(name = "phone", length = 30)
    private String phone;

}
